
const Router = require('@koa/router');
const router = new Router();
const toDoRouter=new Router();
const { add,getToDos }= require('../controllers/toDoCtr')
//注册
toDoRouter.post('/add', add)
toDoRouter.get('/getToDos', getToDos)
router.use('/todo',toDoRouter.routes());
module.exports = router;
